package cs4280.ass2.entity;

import java.util.Date;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

public class Schedule extends AuditableEntity {
	private static final long serialVersionUID = 1L;

	private long movieId;
	private long houseId;
	private Date scheduleStart;
	private Date scheduleEnd;
	private double price;

	public long getMovieId() {
		return movieId;
	}

	public void setMovieId(long movieId) {
		this.movieId = movieId;
	}

	public long getHouseId() {
		return houseId;
	}

	public void setHouseId(long houseId) {
		this.houseId = houseId;
	}

	public Date getScheduleStart() {
		return scheduleStart;
	}

	public void setScheduleStart(Date scheduleStart) {
		this.scheduleStart = scheduleStart;
	}

	public Date getScheduleEnd() {
		return scheduleEnd;
	}

	public void setScheduleEnd(Date scheduleEnd) {
		this.scheduleEnd = scheduleEnd;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}
	
	@Override
	public String toString() {
		ToStringBuilder builder = new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE);
		builder.append("id", this.getId());
		builder.append("createDate",this.getCreateDate());
		builder.append("createUser",this.getCreateUser());
		builder.append("modifyDate",this.getModifyDate());
		builder.append("modifyUser",this.getModifyUser());
		builder.append("movieId", this.getMovieId());
		builder.append("houseId", this.getHouseId());
		builder.append("scheduleStart", this.getScheduleStart());
		builder.append("scheduleEnd", this.getScheduleEnd());
		builder.append("price", this.getPrice());
		return builder.toString();
	}
	
}
